cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
project(matplotlib_cpp LANGUAGES CXX)

include(GNUInstallDirs)
set(PACKAGE_NAME matplotlib_cpp)
set(INSTALL_CONFIGDIR ${CMAKE_INSTALL_LIBDIR}/${PACKAGE_NAME}/cmake)


# Library target
add_library(matplotlib_cpp INTERFACE)
target_include_directories(matplotlib_cpp INTERFACE $<INSTALL_INTERFACE:include>)
target_compile_features(matplotlib_cpp INTERFACE  cxx_std_17)
# work PC environment
#set(PYTHONHOME "D:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64")
#set(NUMPYHOME "C:\\Users\\Chen\\AppData\\Roaming\\Python\\Python37\\site-packages\\numpy\\core\\include")
#home PC environment
set(PYTHONHOME "C:\\Users\\ChenJ\\AppData\\Local\\Programs\\Python\\Python310")
set(NUMPYHOME "C:\\Users\\ChenJ\\AppData\\Local\\Programs\\Python\\Python310\\Lib\\site-packages\\numpy\\core\\include")
target_include_directories(matplotlib_cpp INTERFACE ${PYTHONHOME}/include)
target_include_directories(matplotlib_cpp INTERFACE ${NUMPYHOME})
target_link_directories(matplotlib_cpp INTERFACE ${PYTHONHOME}/libs)
install(  TARGETS matplotlib_cpp  EXPORT install_targets)
